import time

from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def sousuokaung(self):
        dian=(By.ABDROID_UIAUTOMATOR,'new UiSelector().resourceId("com.kongfz.app:id/iv_action_icon").instance(0)")')
        loc=self.find_ele(dian)
        return loc
        print('点击书店')
        time.sleep(3)
        shu=(By.ID,'com.kongfz.app:id/iv_back')
        loc = self.find_ele(shu)
        return loc
        print("返回按钮")
        time.sleep(3)
        dian2=(By.XPATH,'(//android.widget.ImageView[@resource-id="com.kongfz.app:id/iv_action_icon"])[2]')
        loc = self.find_ele(dian2)
        return loc
        print("点击新书")
        time.sleep(3)

